package com.znzz.dao;

import com.znzz.entity.User;
import org.apache.ibatis.annotations.Param;

import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {

    /**
     * 通过用户名和密码查找用户
     */
    User queryUser(@Param(value = "user") User user);

    User findUser(@Param(value = "username") String username,@Param(value = "password") String password);

    User findById(@Param(value = "id") Integer id);



}
